package com.bc.common.message;

public class BaseResp {
	//版本号V1.0
	protected String version;
	//机构号
	protected String orgCode;
	//商户号
	protected String merchCode;
	//交易类别
	protected String payType;
	//响应吗
	protected String respCode;
	//响应信息
	protected String respMsg;
	//签名
	protected String sign;
	
	public BaseResp(){
		
	}
	
	public BaseResp(BaseReq req) {
		this.version = req.getVersion();
		this.orgCode = req.getOrgCode();
		this.merchCode = req.getMerchCode();
		this.payType = req.getPayType();
	}
	
	public BaseResp setCodeAndMsg(String code, String msg) {
		this.respCode = code;
		this.respMsg = msg;
		return this;
	}
	
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getMerchCode() {
		return merchCode;
	}

	public void setMerchCode(String merchCode) {
		this.merchCode = merchCode;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getRespMsg() {
		return respMsg;
	}

	public void setRespMsg(String respMsg) {
		this.respMsg = respMsg;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

}
